/*
 * Copyright the original author or authors.
 * 
 * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.mozilla.org/MPL/MPL-1.1.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.blitscreen.camera
{
	
	/**
	 * All objects which want to interact with the <code>Camera</code> object
	 * have to implement the <code>CameraListener</code> interface and register
	 * to the camera event with the <code>addCameraListener</code> method of
	 * the <code>Camera</code> class.
	 * <p>
	 * Layers can choose to support the zoom functionnality, if their rendering
	 * method support objects scaling.
	 * </p> 
	 * @author Cédric Néhémie
	 * @see com.blitscreen.camera.Camera
	 * @see com.blitscreen.camera.CameraEvent
	 */
	public interface CameraListener
	{
		/**
		 * Method called when a property of the camera have changed.
		 * 
		 * @param e <code>CameraEvent</code> object dispathed by the camera
		 */
		function onCameraChange ( e : CameraEvent ) : void;
	}
}